import { baseRequest } from '@/utils/request'

const request = (url, ...arg) => baseRequest(`/tjzy/founds` + url, ...arg)
export default {
	foundsPage(data) {
		return request('/pageFoundsFlow', data, 'post')
	},
	foundsUpload(data) {
		return request('/uploadFoundsFlow', data, 'post')
	},
	detailFoundsFlow(data) {
		return request(`/detailFoundsFlow/${data.id}`, {}, 'get')
	},
	//短信发送页面导入弹框--根据项目选项获取可用余额
	getAvaliableByCode(projectCode) {
		return request(`/getAvaliableByCode/${projectCode}`, {}, 'get')
	},
	//余额统计
	productAmount(data) {
		return request(`/productAmount`, data, 'post')
	}
}
